<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MissionLocale
 *
 * @ORM\Table(name="mission_locale")
 * @ORM\Entity
 */
class MissionLocale
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var string
     *
     * @ORM\Column(name="locale", type="string", length=5, nullable=false)
     */
    protected $locale;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=250, nullable=false)
     */
    protected $name;

    /**
     * @var string
     *
     * @ORM\Column(name="fail_text", type="string", length=45, nullable=false)
     */
    protected $failText;

    /**
     * @var string
     *
     * @ORM\Column(name="success_text", type="string", length=45, nullable=false)
     */
    protected $successText;

    /**
     * @var string
     *
     * @ORM\Column(name="reward_text", type="string", length=45, nullable=false)
     */
    protected $rewardText;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Mission
     *
     * @ORM\ManyToOne(targetEntity="Entity\Mission")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="mission_id", referencedColumnName="id")
     * })
     */
    protected $mission;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set locale
     *
     * @param string $locale
     * @return MissionLocale
     */
    public function setLocale($locale)
    {
        $this->locale = $locale;
    
        return $this;
    }

    /**
     * Get locale
     *
     * @return string 
     */
    public function getLocale()
    {
        return $this->locale;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return MissionLocale
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set failText
     *
     * @param string $failText
     * @return MissionLocale
     */
    public function setFailText($failText)
    {
        $this->failText = $failText;
    
        return $this;
    }

    /**
     * Get failText
     *
     * @return string 
     */
    public function getFailText()
    {
        return $this->failText;
    }

    /**
     * Set successText
     *
     * @param string $successText
     * @return MissionLocale
     */
    public function setSuccessText($successText)
    {
        $this->successText = $successText;
    
        return $this;
    }

    /**
     * Get successText
     *
     * @return string 
     */
    public function getSuccessText()
    {
        return $this->successText;
    }

    /**
     * Set rewardText
     *
     * @param string $rewardText
     * @return MissionLocale
     */
    public function setRewardText($rewardText)
    {
        $this->rewardText = $rewardText;
    
        return $this;
    }

    /**
     * Get rewardText
     *
     * @return string 
     */
    public function getRewardText()
    {
        return $this->rewardText;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return MissionLocale
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set mission
     *
     * @param \Entity\Mission $mission
     * @return MissionLocale
     */
    public function setMission(\Entity\Mission $mission = null)
    {
        $this->mission = $mission;
    
        return $this;
    }

    /**
     * Get mission
     *
     * @return \Entity\Mission 
     */
    public function getMission()
    {
        return $this->mission;
    }
}
